#ifndef DATABUFFER_H
#define DATABUFFER_H

#include <QObject>


class DataBuffer : public QObject
{
    Q_OBJECT
public:
    explicit DataBuffer(QObject *parent = nullptr);
    ~DataBuffer();
    void pushData(const QByteArray& data);

signals:
    void receiveOne(const QString& strCMD, const QByteArray& msg);

private:
    void checkReady();

    QByteArray buffer_;
};

#endif // DATABUFFER_H
